# - Config file for the LibQPEP package
# It defines the following variables
#  LibQPEP_INCLUDE_DIRS - include directories for qpep
#  LibQPEP_LIBRARIES    - libraries to link against

include(CMakeFindDependencyMacro)
include(${CMAKE_CURRENT_LIST_DIR}/LibQPEP-config.cmake)

# Compute paths
get_filename_component(QPEP_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
message("LibQPEP Found in: ${QPEP_CMAKE_DIR}")
set(LibQPEP_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/../../../include")
set(qpep_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/../../../include")
set(QPEP_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/../../../include")
set(LibQPEP_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../include")

if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
    set(SUFFIX "so")
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
    set(SUFFIX "dylib")
endif()

set(LibQPEP_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/../../../lib/lib@QPEP_LIB@.${SUFFIX}")
set(LibQPEP_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/../../../lib/lib@QPEP_LIB@.${SUFFIX}")
set(qpep_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/../../../lib/lib@QPEP_LIB@.${SUFFIX}")
set(QPEP_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/../../../lib/lib@QPEP_LIB@.${SUFFIX}")

# This causes catkin simple to link against these libraries
set(LibQPEP_FOUND_CATKIN_PROJECT true)
set(LibQPEP_FOUND_CATKIN_PROJECT true)
set(qpep_FOUND_CATKIN_PROJECT true)
set(QPEP_FOUND_CATKIN_PROJECT true)
